import request from '@/utils/request'

// 查询系统消息列表
export function listXtnotice(query) {
  return request({
    url: '/business/xtnotice/list',
    method: 'get',
    params: query
  })
}

// 查询系统消息详细
export function getXtnotice(id) {
  return request({
    url: '/business/xtnotice/' + id,
    method: 'get'
  })
}

// 新增系统消息
export function addXtnotice(data) {
  return request({
    url: '/business/xtnotice',
    method: 'post',
    data: data
  })
}

// 修改系统消息
export function updateXtnotice(data) {
  return request({
    url: '/business/xtnotice',
    method: 'put',
    data: data
  })
}

// 删除系统消息
export function delXtnotice(id) {
  return request({
    url: '/business/xtnotice/' + id,
    method: 'delete'
  })
}
